package MyTest;

class Student{
    int id = 101;
    String name = "张三";
    public int getId() {
        return id;
    }
    public String getName() {
        return name;
    }
}
public class TestDemo4 {
    public static void main(String[] args) {
        Student student = new Student();
        Thread thread1 = new Thread(()-> {
            student.getId();
        });
        Thread thread2 = new Thread(()-> {

        });
    }
}
